/**   
 * @Title: IBaseService.java
 * @Package com.cityoneyes.service
 * @Description: TODO
 * @author Rick
 * @date 2011-8-2 上午12:46:35
 * @version V1.0   
 */
package com.cityoneyes.service;

import java.util.List;

/**
 * @ClassName: IBaseService
 * @Description: BaseService 接口
 * @author Rick
 * @date 2011-8-2 上午12:46:35
 */
public interface IBaseService {

	/**
	 * @Title: add
	 * @Description: 添加操作
	 * @param obj
	 * @return
	 * @return boolean
	 */
	public boolean add(Object obj);
	
	/**
	 * @Title: delete
	 * @Description: 删除操作
	 * @param obj
	 * @return
	 * @return boolean
	 */
	public boolean delete(Object obj);
	
	/**
	 * @Title: deleteById
	 * @Description: 根据主键删除操作
	 * @param objClass
	 * @param id
	 * @return
	 * @return boolean
	 */
	public boolean deleteById(Class objClass, int id);
	
	/**
	 * @Title: getById
	 * @Description: 根据主键获取对象
	 * @param objClass
	 * @param id
	 * @return
	 * @return Object
	 */
	public Object getById(Class objClass, int id);
	
	/**
	 * @Title: update
	 * @Description: 更新操作
	 * @param obj
	 * @return
	 * @return boolean
	 */
	public boolean update(Object obj);
	
	/**
	 * @Title: getAll
	 * @Description: 获取表所有记录
	 * @param objClass
	 * @return
	 * @return List
	 */
	public List getAll(Class objClass);
	
	/**
	 * @Title: getCount
	 * @Description: 获取表记录数量
	 * @param objClass
	 * @return
	 * @return int
	 */
	public int getCount(Class objClass);
}
